package com.example.springbootelasticsearch.canal.listener;

import com.example.springbootelasticsearch.canal.CanalEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @Description: 监听者
 * @Author zhangdongkang
 * @Date 2022/9/27
 */
@Slf4j
@Component
public class EsOrderListener {

	/**
	 * @Description: 数据库监听
	 * @Author zhangdongkang
	 * @Date 2022/9/27
	 */
	@Async("taskExecutor")
	@EventListener(CanalEvent.class)
	public void dbChange(CanalEvent event) {
	}

}
